package com.jdz.gxq.info.admin.estate.service;

import java.util.List;
import java.util.Map;

import com.jdz.gxq.info.admin.estate.bo.Estate;

public interface EstateService {
	
	/**
	 * Estate检索分页用，查询记录条数
	 * @return
	 */
	public int getEstatesCount(String enterpriseName);
	
	/**
	 * Estate检索
	 * @return
	 */
	public List<Estate> getEstates(Map<String, Object> params);
	
	/**
	 * 追加Estate
	 * @param Enterprise
	 */
	public void insertEstate(Estate estate);
	
	/**
	 * 更新Estate
	 * @param estate
	 */
	public void updateEstate(Estate estate);
	
	/**
	 * 通过id得到Estate
	 * @param id
	 * @return
	 */
	public Estate getEstateById(int enterpriseId);
	
	/**
	 * 删除Estate
	 * @param Enterprise
	 */
	public void deleteEstate(int enterpriseId);
	
	/**
	 * 验证EstateName是否重复
	 * (重复返回:false)
	 * flag: 1 追加时验证
	 * flag: 2 更新时验证
	 */
	public boolean checkEstateName(Estate paramEstate, int flag);

}
